<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:body>
        <div class="info_box2">
            <div class="boxhead2">
                <div>Listing for jobs</div>
            </div>
            <div>
                <f:view>
                    <h:form>
                        <h:dataTable  columnClasses="bd_td1,bd_td,bd_td,bd_td" cellpadding="3" cellspacing="1" border="0" styleClass="joblist" rowClasses="list_footer_cell" headerClass="list_header_cell" value="#{vacancyManagedBean.allVacancies}" var="item">
                            <h:column headerClass="list_header_cell" footerClass="list_footer_cell">
                                <f:facet name="header">
                                    <h:outputText value="Title of Vacancy"/>
                                </f:facet>
                                <h:outputLink value="#{vacancyManagedBean.showVacancyDetails(item)}" >
                                    <h:outputText value="#{item.vacantyTitle}"/>
                                </h:outputLink>

                            </h:column >
                            <h:column >
                                <f:facet name="header">
                                    <h:outputText value="Positions"/>
                                </f:facet>
                                <h:outputText value="#{item.numOfJob}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Salary"/>
                                </f:facet>
                                <h:outputText value="#{item.salary}"/>
                            </h:column>
                            <h:column >
                                <f:facet name="header">
                                    <h:outputText value="Start Date"/>
                                </f:facet>
                                <h:outputText value="#{item.startDate}">
                                    <f:convertDateTime pattern="MM/dd/yyyy" />
                                </h:outputText>
                            </h:column>
                        </h:dataTable>
                    </h:form>
                </f:view>


            </div>
        </div>
    </h:body>
</html>

